<% @title = t(".title")%>

<% if @user.webauthn_enabled? %>
  <div class="t-body">
    <h2><%= t(".authenticating_as") %> <%= @user.name %></h2>
    <p><%= t("settings.edit.webauthn_credential_note") %></p>
  </div>

  <%= form_tag @webauthn_verification_url, method: :post, class: "js-webauthn-session-cli--form", data: { options: @webauthn_options.to_json } do %>
    <div class="form_bottom">
      <p hidden class="l-text-red-600 js-webauthn-session-cli--error"></p>

      <%= submit_tag t(".authenticate"), class: 'js-webauthn-session-cli--submit form__submit form__submit--no-hover' %>
    </div>
  <% end %>
<% end %>
